<template>
  <div class="info">
    <div class="cov">
      <div class="title">
        病毒信息
        <a href="https://baike.baidu.com/item/%E6%96%B0%E5%9E%8B%E5%86%A0%E7%8A%B6%E7%97%85%E6%AF%92%E8%82%BA%E7%82%8E/24282529">查看更多 <img src="../../../assets/images/more.png" alt="" /></a>
      </div>
      <p>病毒：SARS-CoV-2，其导致疾病命名 COVID-19</p>
      <p>传染源：新冠肺炎的患者。无症状感染者也可能成为传染源.</p>
      <p>传播途径：经呼吸道飞沫、接触传播是主要的传播途径气溶胶传播和消化道等传播途径尚待明确。</p>
      <p>易感人群：人群普遍易感。老年人及有基础疾病者感染后病情较重，儿童及婴幼儿也有发病</p>
      <p>潜伏期：一股为 3~7天，最长不超过 14 天，潜伏期内可能存在传染性，其中无症状病例传染性非常罕见</p>
      <p>宿主：野生动物，可能为中华菊头蝠</p>
    </div>
    <div class="hot">
      <div class="title">
        <img class="icon" src="../../../assets/images/hot.png" alt="" />
        <a href="https://search.cctv.com/search.php?qtext=%E7%96%AB%E6%83%85&type=web">查看更多<img src="../../../assets/images/more.png" alt="" /></a>
      </div>
      <ul class="list">
        <li v-for="item in news" :key="item.id">
          <span>最新</span> {{ item.title }}
          <a :href="item.sourceUrl"> <img src="../../../assets/images/right.png" alt="" /></a>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    covDesc: {
      type: Object,
      default: function() {
        return {}
      }
    },
    news: {
      type: Array,
      default: function() {
        return []
      }
    }
  }
}
</script>

<style lang='less' scoped>
.info {
  padding: 0.2rem;
  .title {
    margin-bottom: 0.2rem;
    font-size: 0.3rem;
    font-weight: bold;
    color: #666;
    a {
      float: right;
      font-weight: normal;
      color: #4169e2;
      font-size: 0.26rem;
      img {
        width: 0.26rem;
      }
    }
  }
  .title::before {
    content: '';
    border-left: 0.1rem solid rgb(9, 60, 202);
    font-size: 0.26rem;
    margin-right: 0.1rem;
  }
  p {
    line-height: 0.5rem;
    color: #666;
  }
  .hot {
    padding-top: 0.2rem;
    border-bottom: 1px solid #eee;
    .icon {
      width: 1.2rem;
      vertical-align: top;
    }
    .list {
      li {
        line-height: 0.44rem;
        margin-bottom: 0.2rem;
        letter-spacing: 0.03rem;
        font-size: 0.3rem;
        color: #666;
      }
      span {
        background: #ff5555;
        color: #fff;
        font-size: 0.26rem;
        padding: 0.02rem 0.06rem;
        border-radius: 0.06rem;
      }
      img {
        float: right;
        width: 0.24rem;
        padding-right: 0.2rem;
      }
    }
  }
}
</style>
